package com.totoro.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.totoro.dao.BaseHibernateDao;
import com.totoro.dao.StudentDao;
import com.totoro.domain.Student;

@Transactional
@Service
public class StudentService extends BaseService<Student, Integer>{
	
	private StudentDao studentDao;

	@Autowired
	@Override
	public void setBaseDao(BaseHibernateDao<Student, Integer> studentDao) {
		// TODO Auto-generated method stub
		this.baseDao = studentDao;
		this.studentDao = (StudentDao) studentDao;
	}
	
	
}
